<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>标签 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../HTML/列表.html" />
    
    
    <link rel="prev" href="../HTML/元素.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.1.4"
        data-chapter-title="标签"
        data-filepath="HTML/标签.md"
        data-basepath=".."
        data-revision="Sun Sep 23 2018 23:38:49 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="Notes/notes.html">
            
                
                    <a href="../Notes/notes.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        知识库
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="Notes/git的使用.html">
            
                
                    <a href="../Notes/git的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        git的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="Notes/emmet快捷法.html">
            
                
                    <a href="../Notes/emmet快捷法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        emmet快捷法
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="HTML/index.html">
            
                
                    <a href="../HTML/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="HTML/什么是html5.html">
            
                
                    <a href="../HTML/什么是html5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        什么是html5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="HTML/a链接.html">
            
                
                    <a href="../HTML/a链接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        a链接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="HTML/img.html">
            
                
                    <a href="../HTML/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        图片
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="HTML/元素.html">
            
                
                    <a href="../HTML/元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        元素
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.1.4" data-path="HTML/标签.html">
            
                
                    <a href="../HTML/标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="HTML/列表.html">
            
                
                    <a href="../HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        列表
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="HTML/table&amp;form.html">
            
                
                    <a href="../HTML/table&amp;form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        表格和表单
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="HTML/form表单.html">
            
                
                    <a href="../HTML/form表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="HTML/table表格.html">
            
                
                    <a href="../HTML/table表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="HTML/常用表单类型.html">
            
                
                    <a href="../HTML/常用表单类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        常用表单类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="HTML/实体字符.html">
            
                
                    <a href="../HTML/实体字符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="HTML/多媒体和iframe.html">
            
            <span><b>2.3.</b> 多媒体和iframe</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="HTML/audio&amp;vdieo.html">
            
                
                    <a href="../HTML/audio&amp;vdieo.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        音频和视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="HTML/iframe.html">
            
                
                    <a href="../HTML/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        iframe
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="HTML/blog.html">
            
                
                    <a href="../HTML/blog.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        其它
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="CSS/css3.html">
            
                
                    <a href="../CSS/css3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="CSS/选择器.html">
            
                
                    <a href="../CSS/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="CSS/属性选择器.html">
            
                
                    <a href="../CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="CSS/伪类选择器.html">
            
                
                    <a href="../CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="CSS/盒子模型.html">
            
                
                    <a href="../CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x6807;&#x7B7E;">&#x6807;&#x7B7E;</h2>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span>&#x6807;&#x7B7E;<span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-comment">&lt;!-- &#x6362;&#x884C;&#x7B26; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">br</span> /&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x6807;&#x9898; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h1</span>&gt;</span>&#x6807;&#x9898;1<span class="hljs-tag">&lt;/<span class="hljs-title">h1</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h2</span>&gt;</span>&#x6807;&#x9898;2<span class="hljs-tag">&lt;/<span class="hljs-title">h2</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h3</span>&gt;</span>&#x6807;&#x9898;3<span class="hljs-tag">&lt;/<span class="hljs-title">h3</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h4</span>&gt;</span>&#x6807;&#x9898;4<span class="hljs-tag">&lt;/<span class="hljs-title">h4</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h5</span>&gt;</span>&#x6807;&#x9898;5<span class="hljs-tag">&lt;/<span class="hljs-title">h5</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h6</span>&gt;</span>&#x6807;&#x9898;6<span class="hljs-tag">&lt;/<span class="hljs-title">h6</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x6BB5;&#x843D; &#x5757;&#x7EA7;&#x5143;&#x7D20; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>&#x6BB5;&#x843D;&#xFF01;&#xFF01;&#xFF01;<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- span &#x884C;&#x5185;&#x5143;&#x7D20; (&#x4E0D;&#x4F1A;&#x4E3B;&#x52A8;&#x6362;&#x884C;&#xFF0C;&#x4E3B;&#x8981;&#x5BBD;&#x5EA6;&#x8DB3;&#x591F;&#x5927;&#xFF0C;&#x4E00;&#x822C;&#x7528;&#x4E8E;&#x5D4C;&#x5957;)--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span>span1<span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span>span2<span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span>span3<span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- 
            &#x5757;&#x7EA7;&#x5143;&#x7D20;&#x548C;&#x884C;&#x5185;&#x5143;&#x7D20;
            &#x5757;&#x7EA7;&#xFF1A;&#x81EA;&#x5DF1;&#x5360;&#x636E;&#x4E00;&#x884C;
            &#x884C;&#x5185;&#xFF1A;&#x7EE7;&#x7EED;&#x8DDF;&#x968F;&#x4E0A;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#x5728;&#x540C;&#x4E00;&#x884C;&#x5E03;&#x5C40;
        --&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x5D4C;&#x5957; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>&#x7279;&#x4EF7;<span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span>&#xFF1A;998$<span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x7279;&#x6B8A;&#x6837;&#x5F0F; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">b</span>&gt;</span>&#x52A0;&#x7C97;<span class="hljs-tag">&lt;/<span class="hljs-title">b</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">i</span>&gt;</span>&#x659C;&#x4F53;<span class="hljs-tag">&lt;/<span class="hljs-title">i</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">del</span>&gt;</span>&#x5220;&#x9664;&#x7EBF;<span class="hljs-tag">&lt;/<span class="hljs-title">del</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x4E0A;&#x6807; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span> 2 * 2 = 2<span class="hljs-tag">&lt;<span class="hljs-title">sup</span>&gt;</span>2<span class="hljs-tag">&lt;/<span class="hljs-title">sup</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span>
        <span class="hljs-comment">&lt;!-- &#x4E0B;&#x6807; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">span</span>&gt;</span> H<span class="hljs-tag">&lt;<span class="hljs-title">sub</span>&gt;</span>2<span class="hljs-tag">&lt;/<span class="hljs-title">sub</span>&gt;</span>O <span class="hljs-tag">&lt;/<span class="hljs-title">span</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-title">strong</span>&gt;</span>&#x52A0;&#x7C97; &#x5F3A;&#x8C03;<span class="hljs-tag">&lt;/<span class="hljs-title">strong</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- &#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x7B7E; &#x4E0D;&#x5E26;&#x4EFB;&#x4F55;&#x610F;&#x4E49; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">bluej</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">bluej</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- 
             id     &#x5FC5;&#x987B;&#x662F;&#x552F;&#x4E00;&#x7684;
             class  &#x7C7B;&#xFF08;&#x53EF;&#x4EE5;&#x91CD;&#x590D;&#x4F7F;&#x7528;&#xFF09;
             name   &#x540D;&#x79F0;&#xFF08;input&#x4E2D;&#x8868;&#x793A;&#x53C2;&#x6570;&#x540D;&#xFF09;
             data-  &#x8868;&#x793A;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027; &#x4E00;&#x822C;&#x4F1A;&#x7528;data- &#x5F00;&#x5934;
        --&gt;</span>     

    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<h4 id="&#x8FD0;&#x884C;&#x7ED3;&#x679C;">&#x8FD0;&#x884C;&#x7ED3;&#x679C;</h4>
<p><img src="../image/201809215.png" alt="&#x56FE;&#x7247;"></p>
<h5 id="canvas&#x6807;&#x7B7E;">canvas&#x6807;&#x7B7E;</h5>
<p>&#x7528;&#x4E8E;&#x5728;&#x7F51;&#x9875;&#x5B9E;&#x65F6;&#x751F;&#x6210;&#x56FE;&#x50CF;&#xFF0C;&#x5E76;&#x4E14;&#x53EF;&#x4EE5;&#x64CD;&#x4F5C;&#x56FE;&#x50CF;&#x5185;&#x5BB9;,&#x57FA;&#x672C;&#x4E0A;&#x5B83;&#x662F;&#x4E00;&#x4E2A;&#x53EF;&#x4EE5;&#x7528;JavaScript&#x64CD;&#x4F5C;&#x7684;&#x4F4D;&#x56FE;&#xFF08;bitmap&#xFF09;&#x3002;</p>
<h5 id="canvas&#x5BF9;&#x8C61;&#x7684;&#x65B9;&#x6CD5;">canvas&#x5BF9;&#x8C61;&#x7684;&#x65B9;&#x6CD5;</h5>
<table>
<thead>
<tr>
<th style="text-align:left">&#x65B9;&#x6CD5;</th>
<th style="text-align:left">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">getContext()</td>
<td style="text-align:left">&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x5728;&#x753B;&#x5E03;&#x4E0A;&#x7ED8;&#x56FE;&#x7684;&#x73AF;&#x5883;</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../HTML/元素.html" class="navigation navigation-prev " aria-label="Previous page: 元素"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../HTML/列表.html" class="navigation navigation-next " aria-label="Next page: 列表"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
